package com.zhixiang.wbl.visitor.model.location;

import com.zhixiang.wbl.visitor.bean.BaseBean;

/**
 * Created by dongzhixiang on 16/5/31.
 */
public class LocationModel extends BaseBean
{
    private int id;
    private double latitude;
    private double longtitude;
    private int type;//1:游客
    private int user_id;

    public void setId(String id){
        this.id = Integer.parseInt(id);
    }
    public int getId(){
        return this.id;
    }
    public void setLatitude(String latitude){
        this.latitude = Double.parseDouble(latitude);
    }
    public double getLatitude(){
        return this.latitude;
    }
    public void setLongtitude(String longtitude){
        this.longtitude = Double.parseDouble(longtitude);
    }
    public double getLongtitude(){
        return this.longtitude;
    }
    public void setType(String type){
        this.type = Integer.parseInt(type);
    }
    public int getType(){
        return this.type;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(String user_id) {
        this.user_id = Integer.parseInt(user_id);
    }

    @Override
    public String toString() {
        return "LocationModel{" +
                "id=" + id +
                ", latitude=" + latitude +
                ", longtitude=" + longtitude +
                ", type=" + type +
                ", userId=" + user_id +
                '}';
    }
}
